package com.vhall.component.entity.account.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author xianglei
 * @date: 2021/4/28 16:22
 */
@Data
public class RoleAddRspVo implements Serializable {
    private static final long serialVersionUID = -8846547883640424327L;

    @JsonProperty("status_str")
    private String statusStr;

    @JsonProperty("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "角色标识")
    private String code;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "状态 0：正常 1：无效")
    private Integer status;

    @ApiModelProperty(value = "应用id")
    @JsonProperty("app_id")
    private String appId;

    @ApiModelProperty(value = "角色级别")
    private Integer level;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;
}
